Closed Bug 1803226 Opened 3 years ago Closed 2 years ago

NULL password encoding incorrect.

Categories

(NSS :: Libraries, defect)

3.79
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rrelyea, Assigned: rrelyea)

Details

Attachments

(1 file)

When patching previous pkcs12 files to fix errors in handling large passwords (Bug 1757075), NSS broke the null password case. NSS and openssl are tolerant of incorrectly coded NULL passwords because they have to accept old cases where this was broken before. Gnutls, however, enforces null password encoding and interop tests with gnutls found the issue.

Assignee: nobody → rrelyea
Status: NEW → ASSIGNED

The test for adding the unicode null in the null password case was incorrect from Bug 1757075 (https://bugzilla.mozilla.org/show_bug.cgi?id=1757075). The sense of the test was backwards meaning that no null was added.

We didn't notice because NSS and openssl tolerate incorrect null password encoding. It was picked up in gnutls interop testing.

Attachment #9306065 - Attachment description: WIP: Bug 1803226 NULL password encoding incorrect. → Bug 1803226 - NULL password encoding incorrect.
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: